$(document).ready(function () {
    $(".submit-login").click(function () {
    	/*document.forms[0].method = "POST";
    	document.forms[0].action = "index.html";
    	
    	document.forms[0].submit();
    	parent.$.fn.colorbox.close();
    	*/
    	//top.location.reload(true);
    	
    	var usrname=$('#username').val();
    	var psword=$('#password').val();
    	var loginattempt=$('#loginattempt').val();
    	$.post("loginAction.html",{username:usrname,password:psword,LOGIN_ATTEMPT:loginattempt},
    		   function(msg){
    			  //alert(msg);
    			  
    				top.location.reload(true);
    			  parent.$.fn.colorbox.close();
    			  
    		  }
    		);
    	
     	

    	
    });
});

